// var mongoose = require("mongoose");
// var mongoosePaginate = require("mongoose-paginate")
//
// var Schema = mongoose.Schema;
//
// var UserSchema = new Schema({
//     name:String,
//     password:String,
//     date:{type:Date,default:Date.now}
// })
//
// UserSchema.plugin(mongoosePaginate);
// module.exports = mongoose.model("User",UserSchema,"user");


var mongoose = require("mongoose");
var materializedPlugin = require('mongoose-materialized');

var schema = new mongoose.Schema({
    text:"String"
});
schema.plugin(materializedPlugin);
var Cate = mongoose.model("Cate",schema,"cate");

module.exports = Cate;



//
// var mongoose = require('mongoose'),
//     materializedPlugin = require('mongoose-materialized'),
//     Schema = mongoose.Schema;
//
// mongoose.connect('mongodb://localhost/materialized');
//
// var CatSchema = new Schema({
//     name: {type: String}
// });
//
//
// CatSchema.plugin(materializedPlugin);
//
// var Cat= mongoose.model('Cat', CatSchema); // Category